package org.paradise.dms.services.impl;

import java.util.List;

import org.paradise.dms.dao.impl.SystemUserGroupMgrDAOImpl;
import org.paradise.dms.pojo.SystemUserGroup;
import org.paradise.dms.services.SystemUserGroupMgrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dheaven.framework.dao.DaoException;

@Service
public class SystemUserGroupMgrServiceImpl implements SystemUserGroupMgrService {
	@Autowired
	private SystemUserGroupMgrDAOImpl systemUserGroupMgrDAOImpl;

	public List<SystemUserGroup> getSystemUserGroupByName(String systemusergroupname) throws DaoException {
		return systemUserGroupMgrDAOImpl.getSystemUserGroupByName(systemusergroupname);
	}

	public SystemUserGroupMgrDAOImpl getSystemUserGroupMgrDAOImpl() {
		return systemUserGroupMgrDAOImpl;
	}

	public void setSystemUserGroupMgrDAOImpl(SystemUserGroupMgrDAOImpl systemUserGroupMgrDAOImpl) {
		this.systemUserGroupMgrDAOImpl = systemUserGroupMgrDAOImpl;
	}

	public List<SystemUserGroup> insertSystemUserGroup(SystemUserGroup sug) {
		return systemUserGroupMgrDAOImpl.insertSystemUserGroup(sug);
	}
}
